$(document).ready(function () {
				$("#topmenu .title").click(function () { //if you click on a link
					if($(this).next().is(':visible')){ //slide up
						$(this).next().slideUp("fast"); //if you click on a menu that is open, close it
					}else{ //slide down
						//close possible other open menu
						$(".smenu").slideUp("fast");
						$(this).next().slideDown("fast");
					}
				});

				$("#topmenu .smenu a").click(function () { //if you click on a link
					$(".smenu").slideUp("fast");
				});

			});